package com.thirteengroup.casemg.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;

public class Employee {

    //读取excel的时候, 实体 的属性 都要用 包装类型
    @ExcelIgnore
    private Long id;
    @ExcelProperty(value = "员工名称")
    private String name;
    @ExcelIgnore
    private Department dept;
    @ExcelProperty(value = "员工部门ID")
    private Long deptid;
    @ExcelProperty(value = "员工邮箱")
    private String email;
    @ExcelProperty(value = "员工年龄")
    private Long age;
    @ExcelProperty(value = "员工角色")
    private String role;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Department getDept() {
        return dept;
    }

    public void setDept(Department dept) {
        this.dept = dept;
    }

    public Long getDeptid() {
        return deptid;
    }

    public void setDeptid(Long deptid) {
        this.deptid = deptid;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Long getAge() {
        return age;
    }

    public void setAge(Long age) {
        this.age = age;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", dept=" + dept +
                ", deptid=" + deptid +
                ", email='" + email + '\'' +
                ", age=" + age +
                ", role='" + role + '\'' +
                '}';
    }
}
